/// isLock : false
/// title : "第一章 绝症病人"
/// voiceTones : []
/// link : "http://vip.zhuishushenqi.com/chapter/60e7f7ba00ca955b7a0e6205?cv=1625814970064"
/// id : "章节id"
/// bookId : "书本id"
/// cnContent : "中文内容"
/// enContent : "英文内容"
/// ccid : ""
/// time : 0
/// chapterCover : ""
/// totalpage : 0
/// partsize : 0
/// order : 1
/// currency : 20
/// unreadble : false
/// isVip : false

class BookChapterModel {
  bool? isLock;
  String? title;
  String? link;
  String? id;
  String? bookId;
  String? cnContent;
  String? enContent;
  String? ccid;
  int? time;
  String? chapterCover;
  int? totalpage;
  int? partsize;
  int? order;
  int? currency;
  bool? unreadble;
  bool? isVip;

  BookChapterModel({
      this.isLock, 
      this.title,
      this.link, 
      this.id, 
      this.bookId, 
      this.cnContent, 
      this.enContent, 
      this.ccid, 
      this.time, 
      this.chapterCover, 
      this.totalpage, 
      this.partsize, 
      this.order, 
      this.currency, 
      this.unreadble, 
      this.isVip});

  BookChapterModel.fromJson(dynamic json, [String? bookId]) {
    isLock = json["isLock"];
    title = json["title"];
    link = json["link"];
    id = json["id"];
    this.bookId = json["bookId"] ?? bookId;
    cnContent = json["cnContent"];
    enContent = json["enContent"];
    ccid = json["ccid"];
    time = json["time"];
    chapterCover = json["chapterCover"];
    totalpage = json["totalpage"];
    partsize = json["partsize"];
    order = json["order"];
    currency = json["currency"];
    unreadble = json["unreadble"];
    isVip = json["isVip"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["isLock"] = isLock;
    map["title"] = title;
    map["link"] = link;
    map["id"] = id;
    map["bookId"] = bookId;
    map["cnContent"] = cnContent;
    map["enContent"] = enContent;
    map["ccid"] = ccid;
    map["time"] = time;
    map["chapterCover"] = chapterCover;
    map["totalpage"] = totalpage;
    map["partsize"] = partsize;
    map["order"] = order;
    map["currency"] = currency;
    map["unreadble"] = unreadble;
    map["isVip"] = isVip;
    return map;
  }

}